package cn.edu.lzu.service;

import cn.edu.lzu.common.assist.DataPage;
import cn.edu.lzu.common.assist.ResponseResult;
import cn.edu.lzu.entity.Examiner;
import cn.edu.lzu.entity.Role;

import javax.xml.ws.Response;
import java.util.List;
import java.util.Map;

/**
 * @PackageName: cn.edu.lzu.service
 * @InterfaceName: RoleService
 * @Description: TODO
 * @Author: 张琦[QQ:3098086691]
 * @Date: 2020/5/6 10:53
 * @Version: 1.0
 */
public interface RoleService {
    DataPage getRoles(long unitId);

    ResponseResult batchDeleteRolesById(String roleIds);

    ResponseResult addRole(long unitId, String role, String roleName, String perms);

    ResponseResult deleteRoleById(long unitId, int roleId);

    Map<String ,Object> editRole(int roleId);

    ResponseResult executeEditRole(Role role, String perms);

    List<Role> getRolesByExaminerId(long examinerId);

    Map<String, Object> getRolesAndExaminerRolesByExaminerId(long examinerId);

    ResponseResult executeApportionRole(Long examinerId, String roleIds);

    Map<String, Object> getExaminerInfo(Examiner examiner);

    Role getRoleByName(String role, String roleName, long unitId);
}
